<template>
  <viewFile :wpsUrl="jwpsUrl" :token="jtoken"/>
</template>
<script>
  import viewFile from '@/components/wps/view'
  import { ACCESS_TOKEN } from '@/store/mutation-types'

  export default {
    data() {
      return {
        jwpsUrl: '',
        jtoken: ''
      }
    },
    created() {

      this.jwpsUrl = sessionStorage.wpsUrl
      this.jtoken = this.$ls.get(ACCESS_TOKEN)
      console.log('this.jtoken======' + this.jtoken)
    },
    // 通过组件渲染wps的 iframe 框架
    components: {
      viewFile
    }
  }
</script>
<style lang="less" scoped>
  .container {
    height: 100%;
    width: 100%;
    color: #ffffff;
    position: fixed;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
    overflow: hidden;
    li {
      float: left;
      list-style: none;
      margin: 50px 0 0 50px;
    }

  }

</style>
